/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bgu.sonar.util.async;

/**
 *
 * @author bennyl
 */
public abstract class AsyncProcedure<R, G> extends AsyncTask<R> {

    private G arg;

    public void setArg(G arg) {
        this.arg = arg;
    }

    @Override
    public R call() throws Exception {
        return call(arg);
    }

    public abstract R call(G arg) throws Exception;
}
